package cn.com.xuhx.mapper;

import cn.com.xuhx.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface DynamicMapper {

    //if标签
    List<User> queryUser(@Param("id") Integer id, @Param("startBornday") Date startBornday,
                         @Param("endBornDay") Date endBornDay,@Param("startAge") Integer startAge,
                         @Param("endAge") Integer endAge,@Param("name") String name,
                         @Param("address") String address,@Param("tel") String tel,@Param("sfzh") String sfzh);

    List<User> queryUser2(@Param("id") Integer id, @Param("startBornday") Date startBornday,
                         @Param("endBornDay") Date endBornDay,@Param("startAge") Integer startAge,
                         @Param("endAge") Integer endAge,@Param("name") String name,
                         @Param("address") String address,@Param("tel") String tel,@Param("sfzh") String sfzh);

    int deleteUserbyIDs(@Param("ids") Integer[] ids);

    int deleteUserbyIDs2(@Param("ids") Integer[] ids);

    int batchAddUsers(@Param("users") List<User> users);
}
